package com.slipper.system.flow.dao;

import java.util.List;

import com.slipper.system.flow.bo.FlowPendingBO;
import org.apache.ibatis.annotations.Param;

/**
 * 流程待办表
 */
public interface FlowPendingDao {

    int insert(FlowPendingBO bo);

    int update(FlowPendingBO bo);

    int delete(FlowPendingBO bo);

    FlowPendingBO queryBy(String id);

    List<FlowPendingBO> queryList(FlowPendingBO bo);

    List<FlowPendingBO> queryListBy(@Param("instId") String instId, @Param("status") String status);

    FlowPendingBO queryByOne(FlowPendingBO bo);

    int deleteByInstId(String instId);

    int saveReads(List<FlowPendingBO> list);

    int saveSupervise(FlowPendingBO bo);

    int readPending(FlowPendingBO bo);

    int deleteByFlowId(String flowId);

    int updateRead(@Param("instNodeId") String instNodeId, @Param("readTime") Long readTime);

    FlowPendingBO queryByInstNodeId(String instNodeId);

    List<FlowPendingBO> queryPendedPage(FlowPendingBO bo);
}
